import request from '@/utils/request';



// 科室查询
export default {
	// 部门查询
	selectoutdep(pages,sizes) {
		return request({
			url: `http://localhost/api/dept/dept/outdep?pages=${pages}&sizes=${sizes}`,
			method: 'post'
		});
	},

	selectdepart() {
		return request({
			url: `http://localhost/api/dept/dept/depart`,
			method: 'post'
		});
	},

	//选择器查询部门下的科室
	selectdpcdep(dpId) {
		return request({
			url: `http://localhost/api/dept/dept/depdp?dpId=${dpId}`,
			method: 'post'
		});
	},

	//根据科室名称搜索
	selectdpc(pagess,sizess,dpcname) {
		return request({
			url: `http://localhost/api/dept/dept/dpcdep?pages=${pagess}&sizes=${sizess}&dpcname=${dpcname}`,
			method: 'post'
		});
	},

	adddpc(dpc_name,cdp_id,dpc_description,dpc_iscure) {
		return request({
			url: `http://localhost/api/dept/dept/add?dpc_name=${dpc_name}&cdp_id=${cdp_id}&dpc_description=${dpc_description}&dpc_iscure=${dpc_iscure}`,
			method: 'post'
		});
	}


}







